package com.shixi.shixitraining.shixitraining.ui.tabhome.fragment;

import android.os.Bundle;
import android.widget.TextView;

import com.shixi.shixitraining.shixitraining.R;
import com.shixi.shixitraining.shixitraining.base.TabhostBaseFragment;
import com.shixi.shixitraining.shixitraining.ui.tabhome.entity.TrainingListDetailBean;

/**
 * Created by shenyan on 2018/8/9.
 */

public class BookingInformationFragment  extends TabhostBaseFragment {

    @Override
    protected int getlayoutId() {
        return R.layout.fragment_booking;
    }

    @Override
    protected void initPager() {
        TextView mContent = (TextView) mContentView.findViewById(R.id.tv_content);
//        WebView mContent = (WebView) mContentView.findViewById(R.id.web_booking);
        Bundle arguments = getArguments();
        if (arguments!=null){
            TrainingListDetailBean mData = (TrainingListDetailBean) arguments.getSerializable("bean");
            TrainingListDetailBean.DataBean data = mData.getData();
            String destine = data.getDestine();
            mContent.setText(destine);
        }

    }
}
